* {
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

button {
    height: 34px;
    background-color: white;
    border: 1px solid #e0e0e6;
    border-radius: 3px;
    color: #333333;
    font-size: 14px;
    outline: none;
    padding: 0 14px;
    cursor: pointer;
    transition: all .3s ease-in-out;
}

button:hover {
    color: cornflowerblue;
    border-color: cornflowerblue;
}

*[tooltip] {
    position: relative;
}

*[tooltip]::before {
    content: attr(tooltip);
    opacity: 0;
    visibility: hidden;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(100% + 10px);
    padding: 8px 14px;
    color: #333333;
    font-size: 14px;
    line-height: 1.6;
    white-space: nowrap;
    background-color: white;
    text-align: center;
    border-radius: 3px;
    box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
    transition: all .3s ease-in-out;
    cursor: text;
    z-index: 1;
}

*[tooltip]::after {
    content: "";
    opacity: 0;
    visibility: hidden;
    border-width: 5px;
    border-style: solid;
    border-color: white transparent transparent transparent;
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    transition: all .3s ease-in-out;
    z-index: 2;
}

*[tooltip]:hover::before,
*[tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}